<!DOCTYPE html>
<html>
<head>
<title>商品详情</title>
<?php $this->load->view('common/include');?>
<style>
	
	textarea{
		border:0;
		width: 100%;
		padding:15px;
	}
</style>
</head>
<body id="app" v-cloak>
	<header-layout title='' pos="absolute" type="tran">
		<header-dock align='left'>
			<a href="<?php echo site_url('/home'); ?>"><Icon type="back"></Icon></a>
		</header-dock>
		商品评价
		<header-dock align='right'>
			<a href="<?php echo site_url('/user'); ?>"><icon type="people"></icon></a>
		</header-dock>
	</header-layout>
	 
	<layout-main top="none">
		<div class="bo-banner">
			<img src="http://7xj0kd.com2.z0.glb.qiniucdn.com/<?php echo $product['image']; ?>?imageView2/1/w/120/h/80" alt="">
		</div>
		<layout-box p="1111">
			<h3><?php echo $product['name']; ?></h3>
			<grid-row p="0000">
				<form-stars v-ref:score val="1"></form-stars>
				<div class="bo-clear"></div>
			</grid-row>
			 	
		</layout-box>
		 
		<h3 class="bo-box-title">商品评价</h3>
		<layout-box>
			<textarea name="" id="comment" rows="5" placeholder="请输入评价"></textarea>
		</layout-box>
		<grid-row p="1111">
			<btn type="primary" block=true @btn-click="submit" name="提交评价"></btn>
		</grid-row>
	</layout-main>
	 
	 
	 <script>
		var PRODUCT = <?php echo json_encode($product);?>;
	</script>
 
	<script src="js/comment.build.js"></script>
</body>
</html>
